package com.xayy.mgt.model.xinwangmodel;

import cn.kawins.spring.mvc.validator.Group;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.Map;

/**
 * 健康评估
 * @author plq
 */
@Data
@Builder
public class HealthEntity {

    /**
     * 0-权重分析法，1-神经网络
     */
    @NotNull(groups = Group.Insert.class)
    @ApiModelProperty(value = "0-权重分析法，1-神经网络",required = true)
    private  Integer algorithmType;

    /**
     * 评估时间
     */
    @NotNull(groups = Group.Insert.class)
    @ApiModelProperty("评估时间")
    private Date time;
    /**
     * fault文件中的字符串
     */
    @ApiModelProperty(" fault文件中的字符串")
    private Map<String,Object> fault;
    @ApiModelProperty("select，暂时不用")
    private  Map<String,Object> select;

    @NotNull(groups = Group.Insert.class)
    @ApiModelProperty("节点id")
    private  Long nodeId;
}
